# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=nemo-keepalive
pkgver=1.7.3
pkgrel=0
pkgdesc="Nemo's Keepalive"
url="https://git.sailfishos.org/mer-core/nemo-keepalive"
arch="all"
license="LGPL-2.1-or-later"
depends_dev="qt5-qtdeclarative-dev libiphb-dev mce-dev"
makedepends="$depends_dev qt5-qtbase-dev qtchooser"
subpackages="$pkgname-dev $pkgname-doc"
source="https://git.sailfishos.org/mer-core/nemo-keepalive/-/archive/$pkgver/nemo-keepalive-$pkgver.tar.gz"
options="!check" # No suitable tests

build() {
	qmake-qt5
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install

	# Remove tests
	rm -rf "$pkgdir"/opt
}

sha512sums="158270911f5a2f4f7e097f0c5f457061d699f151cd4a27b0ad096fdbe5c41dc0be550050c1d0508d40badcbcd0de43e3e1044dfbce7e172c19317a5f6cce76f6  nemo-keepalive-1.7.3.tar.gz"
